﻿<!DOCTYPE html>
<html>
<head>
    <title>$news.ntitle</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="Keywords" content="$news.keywords" />
    <meta name="Description" content="$news.description" />
    <!-- Mobile Devices Support @begin -->
    <meta content="application/xhtml+xml;charset=UTF-8" http-equiv="Content-Type" />
    <meta content="no-cache,must-revalidate" http-equiv="Cache-Control" />
    <meta content="no-cache" http-equiv="pragma" />
    <meta content="0" http-equiv="expires" />
    <meta content="telephone=no, address=no" name="format-detection" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <!-- apple devices fullscreen -->
    <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
    <!-- Mobile Devices Support @end -->
    <link rel="stylesheet" type="text/css" href="/css/common.css" />
    <link rel="stylesheet" type="text/css" href="/css/reset.css" />
    <link rel="stylesheet" type="text/css" href="/css/Bootstrap/font-awesome.css" />
    <link rel="stylesheet" type="text/css" href="$newscss" />
    <link rel="stylesheet" type="text/css" href="$menucss" />
    <script type="text/javascript" src="/Scripts/JQuery.min.js"></script>
    
    <style type="text/css">
        img
        {
            width: 100% !important;
        }
    </style>
</head>
<body onselectstart="return true;" ondragstart="return false;">
    <div class="body" style="padding-bottom: 60px;">
        <footer class="nav_footer">
            <ul class="box">
                <li><a href="javascript:history.go(-1);">返回</a></li>
                <li><a href="javascript:history.go(1);">前进</a></li>
                <li><a href="/phone/home?userid=$merchant.user_id">首页</a></li>
                <li><a href="javascript:location.reload();">刷新</a></li>
            </ul>
        </footer>
        <!--分享前控制-->
        <script type="text/javascript">
            document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
                window.shareData = {
                    "imgUrl": "$news.npicurl",
                    "timeLineLink": location.href,
                    "sendFriendLink": location.href,
                    "weiboLink": location.href,
                    "tTitle": "$news.ntitle",
                    "tContent": "$news.description",
                    "fTitle": "$news.ntitle",
                    "fContent": "$news.description",
                    "wContent": "$news.description"
                };

                WeixinJSBridge.call('hideToolbar');

                // 发送给好友
                WeixinJSBridge.on('menu:share:appmessage', function (argv) {
                    WeixinJSBridge.invoke('sendAppMessage', {
                        "img_url": window.shareData.imgUrl,
                        "img_width": "640",
                        "img_height": "640",
                        "link": window.shareData.sendFriendLink,
                        "desc": window.shareData.fContent,
                        "title": window.shareData.fTitle
                    }, function (res) {
                        _report('send_msg', res.err_msg);
                    })
                });

                // 分享到朋友圈
                WeixinJSBridge.on('menu:share:timeline', function (argv) {
                    WeixinJSBridge.invoke('shareTimeline', {
                        "img_url": window.shareData.imgUrl,
                        "img_width": "640",
                        "img_height": "640",
                        "link": window.shareData.timeLineLink,
                        "desc": window.shareData.tContent,
                        "title": window.shareData.tTitle
                    }, function (res) {
                        _report('timeline', res.err_msg);
                    });
                });

                // 分享到微博
                WeixinJSBridge.on('menu:share:weibo', function (argv) {
                    WeixinJSBridge.invoke('shareWeibo', {
                        "content": window.shareData.wContent,
                        "url": window.shareData.weiboLink
                    }, function (res) {
                        _report('weibo', res.err_msg);
                    });
                });
            }, false)
        </script>
        <section class="news_article">
            #if($news.ndnottitle!=1)
            <header>
                <h3 style="font-size: 14px;">
                    $news.ntitle</h3>
                <small class="gray">$news.ncreatedate</small>
            </header>
            #end
            <article>
            <p>
                <img src="$news.npicurl" style="width: 100%;" /></p>
                $news.ncontent
            </article>
        </section>
        <section>
            <div id="mcover" onclick="document.getElementById('mcover').style.display='';" style="display: none;">
                <img alt="" src="/images/website/guide.png">
            </div>
            <div class="text" id="content">
                <div id="mess_share">
                    <div id="share_1">
                        <button class="button2" onclick="document.getElementById('mcover').style.display='block';">
                            <img src="/images/website/icon_msg.png">&nbsp;发送给朋友
                        </button>
                    </div>
                    <div id="share_2">
                        <button class="button2" onclick="document.getElementById('mcover').style.display='block';">
                            <img src="/images/website/icon_timeline.png">&nbsp;分享到朋友圈
                        </button>
                    </div>
                    <div class="clr">
                    </div>
                </div>
            </div>
        </section>
        <div style="padding-bottom: 0!important;">
            <a href="javascript:window.scrollTo(0,0);" style="font-size: 12px; margin: 5px auto;
                display: block; color: #fff; text-align: center; line-height: 35px; background: #333;
                margin-bottom: -10px;">返回顶部</a>
        </div>
    </div>
</body>
</html>
